package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 股权出质信息
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("stockpawnlist")
@ApiModel(value="StockpawnlistEntity对象", description="股权出质信息")
public class StockpawnlistEntity extends Model<StockpawnlistEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterprisename;

    @ApiModelProperty(value = "统一信用代码")
    private String creditcode;

    @ApiModelProperty(value = "登记编号")
    @TableField("stkPawnRegNo")
    private String stkpawnregno;

    @ApiModelProperty(value = "出质人")
    @TableField("stkPawnCzPer")
    private String stkpawnczper;

    @ApiModelProperty(value = "出质人证件/证件号")
    @TableField("stkPawnCzCerNo")
    private String stkpawnczcerno;

    @ApiModelProperty(value = "出质股权数额")
    @TableField("stkPawnCzAmount")
    private String stkpawnczamount;

    @ApiModelProperty(value = "质权人姓名")
    @TableField("stkPawnZqPer")
    private String stkpawnzqper;

    @ApiModelProperty(value = "质权人证件/证件号")
    @TableField("stkPawnZqCerNo")
    private String stkpawnzqcerno;

    @ApiModelProperty(value = "质权出质设立登记日期")
    @TableField("stkPawnRegDate")
    private String stkpawnregdate;

    @ApiModelProperty(value = "状态")
    @TableField("stkPawnStatus")
    private String stkpawnstatus;

    @ApiModelProperty(value = "公示日期")
    @TableField("stkPawnPubDate")
    private String stkpawnpubdate;

    @ApiModelProperty(value = "关联内容")
    @TableField("relDetails")
    private String reldetails;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
